projects
/
project
/
udebug.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93f6df0
)
ucode: add ferror() call to check for closed write file descriptor
author
Felix Fietkau
<
[email protected]
>
Sun, 17 Aug 2025 09:10:49 +0000
(11:10 +0200)
committer
Felix Fietkau
<
[email protected]
>
Sun, 17 Aug 2025 09:10:53 +0000
(11:10 +0200)
Fixes stale udebug stream processes when run over ssh
Signed-off-by: Felix Fietkau <
[email protected]
>
lib-ucode.c
patch
|
blob
|
history
diff --git
a/lib-ucode.c
b/lib-ucode.c
index d282197af0dd2fad41276bf9275c4748bdda318a..00ab1c846417d72e07374861e92e878b4f7391f0 100644
(file)
--- a/
lib-ucode.c
+++ b/
lib-ucode.c
@@
-417,6
+417,9
@@
uc_udebug_pcap_write(uc_vm_t *vm, size_t nargs)
ret = true;
}
+ if (ferror(p->f))
+ return NULL;
+
out:
return ucv_boolean_new(ret);
}